\hypertarget{classsc2_1_1_agent}{}\section{sc2\+:\+:Agent Class Reference}
\label{classsc2_1_1_agent}\index{sc2\+::\+Agent@{sc2\+::\+Agent}}


The base class for user defined bots.  




{\ttfamily \#include $<$sc2\+\_\+agent.\+h$>$}

Inheritance diagram for sc2\+:\+:Agent\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classsc2_1_1_agent}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsc2_1_1_action_interface}{Action\+Interface} $\ast$ \hyperlink{classsc2_1_1_agent_ac0725513a2164c76857a7d2615a31264}{Actions} ()
\item 
\hyperlink{classsc2_1_1_action_feature_layer_interface}{Action\+Feature\+Layer\+Interface} $\ast$ \hyperlink{classsc2_1_1_agent_a0e267c48e4e41e37dc14185113493cc4}{Actions\+Feature\+Layer} ()
\item 
\hyperlink{classsc2_1_1_agent_control_interface}{Agent\+Control\+Interface} $\ast$ \hyperlink{classsc2_1_1_agent_ad47b7a7383489567360ce1697d5e1675}{Agent\+Control} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The base class for user defined bots. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classsc2_1_1_agent_ac0725513a2164c76857a7d2615a31264}\label{classsc2_1_1_agent_ac0725513a2164c76857a7d2615a31264}} 
\index{sc2\+::\+Agent@{sc2\+::\+Agent}!Actions@{Actions}}
\index{Actions@{Actions}!sc2\+::\+Agent@{sc2\+::\+Agent}}
\subsubsection{\texorpdfstring{Actions()}{Actions()}}
{\footnotesize\ttfamily \hyperlink{classsc2_1_1_action_interface}{Action\+Interface}$\ast$ sc2\+::\+Agent\+::\+Actions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Interface for issuing actions to units. Actions should be batched via the Unit\+Command functions then eventually dispatched with Send\+Actions. If you are stepping the simulation yourself the Step will automatically call Send\+Actions. If your bot is running in real time you must call Send\+Actions yourself. \begin{DoxyReturn}{Returns}
The raw (basic) action interface. 
\end{DoxyReturn}
\mbox{\Hypertarget{classsc2_1_1_agent_a0e267c48e4e41e37dc14185113493cc4}\label{classsc2_1_1_agent_a0e267c48e4e41e37dc14185113493cc4}} 
\index{sc2\+::\+Agent@{sc2\+::\+Agent}!Actions\+Feature\+Layer@{Actions\+Feature\+Layer}}
\index{Actions\+Feature\+Layer@{Actions\+Feature\+Layer}!sc2\+::\+Agent@{sc2\+::\+Agent}}
\subsubsection{\texorpdfstring{Actions\+Feature\+Layer()}{ActionsFeatureLayer()}}
{\footnotesize\ttfamily \hyperlink{classsc2_1_1_action_feature_layer_interface}{Action\+Feature\+Layer\+Interface}$\ast$ sc2\+::\+Agent\+::\+Actions\+Feature\+Layer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Interface for issuing actions in feature layers. \begin{DoxyReturn}{Returns}
The feature layer action interface. 
\end{DoxyReturn}
\mbox{\Hypertarget{classsc2_1_1_agent_ad47b7a7383489567360ce1697d5e1675}\label{classsc2_1_1_agent_ad47b7a7383489567360ce1697d5e1675}} 
\index{sc2\+::\+Agent@{sc2\+::\+Agent}!Agent\+Control@{Agent\+Control}}
\index{Agent\+Control@{Agent\+Control}!sc2\+::\+Agent@{sc2\+::\+Agent}}
\subsubsection{\texorpdfstring{Agent\+Control()}{AgentControl()}}
{\footnotesize\ttfamily \hyperlink{classsc2_1_1_agent_control_interface}{Agent\+Control\+Interface}$\ast$ sc2\+::\+Agent\+::\+Agent\+Control (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

The \hyperlink{classsc2_1_1_agent_control_interface}{Agent\+Control\+Interface} is only currently used for restarting a game. For internal use. \begin{DoxyReturn}{Returns}
The agent control interface. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/sc2api/sc2\+\_\+agent.\+h\end{DoxyCompactItemize}
